﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/LoginPage.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
<div class="login-form">
    <h2>Login</h2>
    <% if((bool?)ViewData["lastLoginFailed"] == true) { %>
        <div class="Message">
            Sorry, your login attempt failed. Please try again.
        </div>
    <% } %>

    <% using(Html.BeginForm()) { %>
        <p><%=Html.TextBox("userName", null, new {@PlaceHolder="User name"}) %></p>
        <p><%= Html.Password("password", null, new { @PlaceHolder = "Password" })%></p>        
            <ul>
                <li><input class="btn-blue" type="submit" value="Login" /></li>
                <li><%= Html.CheckBox("rememberMe") %></li>
                <li>remember me?</li>
                <li><%= Html.ActionLink("Create your account", "Register", "Account") %></li>
            </ul>   
        <div>&nbsp;</div>         
    <% } %>
    
</div>
</asp:Content>
